/*
 * Copyright (C) 2012 Damien Girard <dgirard@nativesoft.fr>
 * Copyright (C) 2012 Sebastien Baudrand <sebbaudrand@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package fr.umlv.qroxy.http;

/**
 * Class holdings some constants.
 *
 * @author Damien Girard <dgirard@nativesoft.fr>
 * @author Sebastien <sebbaudrand@gmail.com>
 */
public class HttpConstants {

    /**
     * Timeout of a keepalive connection.
     *
     * In milliseconds.
     */
    public static final int HTTP_KEEPALIVE_TIMEOUT = 5000;
    /**
     * Maximal size of the HTTP Header.
     */
    public static final int HTTP_HEADER_MAX_SIZE = 16384 * 8; // 16 Ko.
    /**
     * Maximal size of the dechunker.
     */
    public static final int HTTP_DECHUNK_BUFFER_SIZE = 1048576 * 8; // 1024 Ko.
    /**
     * Major version number of the supported HTTP version.
     *
     * HTTP_MAJOR_VERSION_SUPPORT.HTTP_MINOR_VERSION_SUPPORT
     */
    public static final int HTTP_MAJOR_VERSION_SUPPORT = 1;
    /**
     * Minor version number of the supported HTTP version.
     *
     * HTTP_MAJOR_VERSION_SUPPORT.HTTP_MINOR_VERSION_SUPPORT
     */
    public static final int HTTP_MINOR_VERSION_SUPPORT = 1;
    
}
